public class ThreadSafeSingle {

    private ThreadSafeSingle() {

    }

    private static class StaticClass {
      public static final ThreadSafeSingle threadSafeSingle = new ThreadSafeSingle();
    }

    public static ThreadSafeSingle getInstance() {
        return StaticClass.threadSafeSingle;
    }

}
